/**
 * Project: complex.java
 * 
 * File Created at 2011-5-25
 * $Id: FileTest.java 142 2011-06-27 06:43:13Z ymkyve501@163.com $
 * 
 * Copyright 1999-2100 Alibaba.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package complex.java.base;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * TODO Comment of FileTest
 * @author gaoliang
 *
 * @date 2011-5-25
 */
public class FileTest {
public static void main(String[] args) {
    try {
        FileOutputStream out = new FileOutputStream("d:\\test1.txt");
        byte b[] = new byte[2];
        b[0]='a';
        b[1]='b';
        out.write(b);
        
        out.flush();
        
        out.close();
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
}
